package com.xja.boot.demo.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/*
@Controller 定义控制器对象
@Service    定义业务对象
@Repository 定义持久层对象
@Component  定义一个普通对象
*/
@Component
@ConfigurationProperties( prefix = "studentinfo")
public class StudentInfo {
    private Integer stuid;
    private String stuname;
    private List<String> stuaddress;
    private Map<String,String> stuscoreinfo;

    public Integer getStuid() {
        return stuid;
    }

    public void setStuid(Integer stuid) {
        this.stuid = stuid;
    }

    public String getStuname() {
        return stuname;
    }

    public void setStuname(String stuname) {
        this.stuname = stuname;
    }

    public List<String> getStuaddress() {
        return stuaddress;
    }

    public void setStuaddress(List<String> stuaddress) {
        this.stuaddress = stuaddress;
    }

    public Map<String, String> getStuscoreinfo() {
        return stuscoreinfo;
    }

    public void setStuscoreinfo(Map<String, String> stuscoreinfo) {
        this.stuscoreinfo = stuscoreinfo;
    }


    @Override
    public String toString() {
        return "StudentInfo{" +
                "stuid=" + stuid +
                ", stuname='" + stuname + '\'' +
                ", stuaddress=" + stuaddress +
                ", stuscoreinfo=" + stuscoreinfo +
                '}';
    }
}
